/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Actors;
 
import GameFrameworkJavaFX.Gui;

/**
 *
 * @author anc
 */
public class Bricks extends Actor {
 
    public Actor topEdge;
    public Actor bottomEdge;
    public Actor leftEdge;
    public Actor rightEdge;
    public int counter = 2;
    
    //Constructor for bricks
    public Bricks(String name, String filename, int size, int width, int height) {
        super(name, filename, size);
        this.setWidth(width);
        this.setHeight(height);
        
        topEdge = new Actor("edge", filename, size);
        topEdge.setWidth(width);
        topEdge.setHeight(5);
        
        bottomEdge = new Actor("edge", filename, size);
        bottomEdge.setWidth(width);
        bottomEdge.setHeight(5);
        
        leftEdge = new Actor("edge", filename, size);
        leftEdge.setWidth(2);
        leftEdge.setHeight(height);
        
        rightEdge = new Actor("edge", filename, size);
        rightEdge.setWidth(2);
        rightEdge.setHeight(height);
    }
    
    public void setLocation(int x, int y) {
        super.setLocation(x, y);
        topEdge.setLocation(x, y);
        bottomEdge.setLocation(x, y+55);
        leftEdge.setLocation(x, y);
        rightEdge.setLocation(x+28, y);
        
        
    }
    
 
    @Override
    public void timeTick() {
        
        super.timeTick();
            
 
        
       
    }
    
    
    public int getBricksWidth() {
        return getWidth();
    }
 
    public void setBricksWidth(int width) {
        this.setWidth(width);
 
    }
 
    public int getBricksHeight() {
        return getHeight();
    }
 
    public void setBricksHeight(int height) {
        this.setHeight(height);
    }
}